project(GCHello)
set(DNNL_LIBRARY_TYPE STATIC)
set(ONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND on)

add_subdirectory(oneDNN)
include_directories(${PROJECT_SOURCE_DIR}/oneDNN/src/graph/backend/graph_compiler/core/src)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fopenmp")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

add_executable(hello example/hello.cpp)
target_link_libraries(hello dnnl)

add_executable(tensorir example/tensorir.cpp)
target_link_libraries(tensorir dnnl)

add_executable(graphir example/graphir.cpp)
target_link_libraries(graphir dnnl)

add_executable(graphlower example/graphlower.cpp)
target_link_libraries(graphlower dnnl)
